<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>module-nvidia340</Name>
        <Homepage>https://www.nvidia.com/</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>NVIDIA</License>
        <Summary>NVIDIA drivers for GeForce 6xxx and newer GPUs</Summary>
        <Description>NVIDIA graphics drivers provide optimized 2D/3D performance.</Description>
        <Archive sha1sum="53faf727383b3a698ac382bf9bb981d4a881cb0d" type="binary">http://http.download.nvidia.com/XFree86/Linux-x86/340.108/NVIDIA-Linux-x86-340.108.run</Archive>
        <Archive sha1sum="124c8462319fca6c59b10d4bdcd85e3b1c104995" type="binary">http://http.download.nvidia.com/XFree86/Linux-x86_64/340.108/NVIDIA-Linux-x86_64-340.108.run</Archive>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="dkms.conf">dkms.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.7.patch">0001-kernel-5.7.patch</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.8.patch">0002-kernel-5.8.patch</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.9.patch">0003-kernel-5.9.patch</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.10.patch">0004-kernel-5.10.patch</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.11.patch">0005-kernel-5.11.patch</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.14.patch">0006-kernel-5.14.patch</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="kernel-5.15.patch">0008-fix-5.15.patch</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency version="5.15.102">kernel-module-headers</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>module-nvidia340</Name>
        <IsA>driver</IsA>
        <Summary>Kernel module for NVIDIA driver 340.xx releases</Summary>
        <RuntimeDependencies>
            <Dependency version="5.15.102">kernel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library" permanent="true">/lib/modules</Path>
        </Files>
        <BuildFlags>
            <Flag>noDelta</Flag>
        </BuildFlags>
        <Conflicts>
            <Package>nvidia340-dkms</Package>
        </Conflicts>
    </Package>

    <Package>
        <Name>xorg-video-nvidia340</Name>
        <IsA>driver</IsA>
        <RuntimeDependencies>
            <Dependency>libXext</Dependency>
            <Dependency>xorg-server</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>opencl-icd</Dependency>
            <AnyDependency>
                <Dependency version="current">module-nvidia340</Dependency>
                <Dependency>nvidia340-dkms</Dependency>
            </AnyDependency>
        </RuntimeDependencies>
        <Conflicts>
            <Package>xorg-video-nvidia-current</Package>
            <Package>xorg-video-nvidia304</Package>
        </Conflicts>
        <Files>
            <Path fileType="data">/etc/OpenCL</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <BuildFlags>
            <Flag>noDelta</Flag>
        </BuildFlags>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>xorg-video-nvidia340-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for xorg-video-nvidia340</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libvdpau-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>opencl-icd-32bit</Dependency>
            <Dependency release="current">xorg-video-nvidia340</Dependency>
        </RuntimeDependencies>
        <Conflicts>
            <Package>xorg-video-nvidia-current-32bit</Package>
            <Package>xorg-video-nvidia304-32bit</Package>
        </Conflicts>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
            <Path fileType="library">/usr/share/nvidia-current/32bit-ld.so.conf</Path>
        </Files>
        <BuildFlags>
            <Flag>noDelta</Flag>
        </BuildFlags>
    </Package>

    <Package>
        <Name>nvidia340-dkms</Name>
        <IsA>driver</IsA>
        <Summary>NVIDIA driver sources for linux</Summary>
        <RuntimeDependencies>
            <Dependency>dkms</Dependency>
            <Dependency>xorg-video-nvidia340</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/modprobe.d/nvidia340-dkms.conf</Path>
            <Path fileType="data">/usr/src/nvidia*</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/nvidia340-dkms.conf">modprobe.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/X11/xorg.conf.d/10-nvidia-glx.conf">xorg.conf</AdditionalFile>
        </AdditionalFiles>
        <BuildFlags>
            <Flag>noDelta</Flag>
        </BuildFlags>
        <Conflicts>
            <Package>module-nvidia340</Package>
            <Package>nvidia-current-dkms</Package>
            <Package>nvidia430-dkms</Package>
            <Package>nvidia390-dkms</Package>
            <Package>nvidia340</Package>
        </Conflicts>
    </Package>

    <Package>
        <Name>nvidia340</Name>
        <IsA>driver</IsA>
        <Summary>Meata package for nvidia340 drivers</Summary>
        <RuntimeDependencies>
            <Dependency>module-nvidia340</Dependency>
            <Dependency>xorg-video-nvidia340</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/var/tmp/nvidia</Path>
        </Files>
        <BuildFlags>
            <Flag>noDelta</Flag>
        </BuildFlags>
        <Conflicts>
            <Package>nvidia340-dkms</Package>
        </Conflicts>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/var/tmp/nvidia">nvidia.txt</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="59">
            <Date>2023-03-15</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="58">
            <Date>2023-03-02</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="57">
            <Date>2023-02-01</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="56">
            <Date>2023-01-03</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="55">
            <Date>2022-12-07</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="54">
            <Date>2022-10-22</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="53">
            <Date>2022-09-12</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="52">
            <Date>2022-08-17</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="51">
            <Date>2022-07-22</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="50">
            <Date>2022-06-25</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="49">
            <Date>2022-05-22</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="48">
            <Date>2022-04-15</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="47">
            <Date>2022-03-23</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="46">
            <Date>2022-01-31</Date>
            <Version>340.108</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="45">
            <Date>2022-01-15</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="44">
            <Date>2021-12-17</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="43">
            <Date>2021-11-27</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="42">
            <Date>2021-11-19</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="41">
            <Date>2021-11-12</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="40">
            <Date>2021-09-10</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="39">
            <Date>2021-09-10</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="38">
            <Date>2021-08-13</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="37">
            <Date>2021-06-02</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>İdris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="36">
            <Date>2021-05-12</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="35">
            <Date>2021-04-29</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="34">
            <Date>2021-03-01</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="33">
            <Date>2020-07-05</Date>
            <Version>340.108</Version>
            <Comment>Add comar script and meta package</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin.bojara@gmail.com</Email>
        </Update>
        <Update release="32">
            <Date>2020-06-01</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="31">
            <Date>2020-04-03</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="30">
            <Date>2020-01-31</Date>
            <Version>340.108</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal Bojara</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="29">
            <Date>2020-01-09</Date>
            <Version>340.108</Version>
            <Comment>Add dkms support. Version bump</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin.bojara@gmail.com</Email>
        </Update>
        <Update release="28">
            <Date>2019-12-28</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="27">
            <Date>2019-08-14</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="26">
            <Date>2019-06-09</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="25">
            <Date>2019-12-05</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="24">
            <Date>2019-04-06</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="23">
            <Date>2019-01-20</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="22">
            <Date>2018-12-22</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="21">
            <Date>2018-10-06</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="20">
            <Date>2018-09-01</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="19">
            <Date>2018-07-13</Date>
            <Version>340.107</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="18">
            <Date>2018-04-29</Date>
            <Version>340.106</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2018-03-11</Date>
            <Version>340.106</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2018-03-03</Date>
            <Version>340.106</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="15">
            <Date>2018-01-06</Date>
            <Version>340.104</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="14">
            <Date>2017-12-20</Date>
            <Version>340.104</Version>
            <Comment>Rebuild for new kernel.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2017-12-06</Date>
            <Version>340.104</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="12">
            <Date>2017-11-24</Date>
            <Version>340.102</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2017-08-22</Date>
            <Version>340.102</Version>
            <Comment>Rebuild.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="10">
            <Date>2017-07-07</Date>
            <Version>340.102</Version>
            <Comment>Version bump.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="9">
            <Date>2017-03-11</Date>
            <Version>340.101</Version>
            <Comment>Rebuild.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="8">
            <Date>2017-01-31</Date>
            <Version>340.101</Version>
            <Comment>Version bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="7">
            <Date>2016-12-11</Date>
            <Version>340.98</Version>
            <Comment>Rebuild for kernel 4.8.13</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="6">
            <Date>2016-11-05</Date>
            <Version>340.98</Version>
            <Comment>Version bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2016-08-28</Date>
            <Version>340.96</Version>
            <Comment>Rebuild for kernel 4.7.2</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-08-06</Date>
            <Version>340.96</Version>
            <Comment>Rebuild for kernel 4.7.0</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-07-17</Date>
            <Version>340.96</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-30</Date>
            <Version>340.96</Version>
            <Comment>Rebuild for new kernel</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-06</Date>
            <Version>340.96</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
